package com.atguigu.client;

import com.atguigu.srb.common.result.R;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

//@FeignClient(value = "service-base")
@FeignClient(value = "service-base",name = "service-base",url = "http://localhost:8081")
public interface BaseClient {

    @ApiOperation("校验手机号")
    @GetMapping("user/check/phone/{mobile}")
    R checkPhone(@PathVariable("mobile")String mobile);

    @ApiOperation("测试不install")
    @GetMapping("user/test/not/install")
    public R test();
}
